//
//$Id: fa_generate.cpp 722 2012-11-29 17:33:43Z andrew.tsyganov $
#include "stdafx.h"
#include "contrib/simpleini/simpleini.h"
#include "../src/nfamin/include/fa.h"
#include "../src/nfamin/include/utils.h"
#include "../src/nfamin/include/generate.h"
#include "conio.h"

using namespace std;

int main(int argc, char* argv[])
{
	Subset s;
    Subset::statistics st;
	cout << sizeof(s) << endl;
	s.calc_stat(&st);
	cout << st.memory_used << endl;

	s.insert(1);
	s.calc_stat(&st);
	cout << st.memory_used << endl;
	s.insert(1000);
	s.calc_stat(&st);
	cout << st.memory_used << endl;
	s.insert(1000000);
	s.calc_stat(&st);
	cout << st.memory_used << endl;
	s.clear(true);
	s.resize(1);
	s.calc_stat(&st);
	cout << st.memory_used << endl;
/*
    if (argc != 4)
    {
        cout << "fa_generate usage: 'fa_generate.exe file.ini output_dir rand_seed'" << endl;
        return -1;
    }

    CSimpleIniA ini;
    bool load_ok = (ini.LoadFile(argv[1]) >= SI_OK);
    if (!load_ok) 
    {
        cout << "fa_generate: *.ini file error!" << endl;
        return -1;
    }

    Generation_Parameters gp(ini, "generate");
    vector<FA> v_fa;

    GenerateFAs(v_fa, gp, (unsigned int) atoi(argv[3]));
    SaveFAs(v_fa, argv[2]);
*/ 
	_getch();
    return 0;
}
//EOF!